export default {
  path: '/flow_manage',
  component: () => import('../../layout'),
  redirect: '/flow_manage/flow_design',
  meta: {
    title: '流程管理',
    icon: '流程'
  },
  children: [
    {
      path: 'flow_design',
      component: () => import('../../pages/flow_manage/flow_design'),
      meta: {
        title: '流程设计'
      },
      children: [
        {
          path: 'insert',
          component: () =>
            import('../../pages/flow_manage/flow_design/modeling'),
          meta: {
            title: '创建流程'
          }
        },
        {
          path: 'edit/:id',
          component: () =>
            import('../../pages/flow_manage/flow_design/modeling'),
          meta: {
            title: '编辑流程',
            noSearch: true
          }
        }
      ]
    },
    {
      path: 'flow_type',
      component: () => import('../../pages/flow_manage/flow_type'),
      meta: {
        title: '流程类型'
      }
    }
  ]
}
